<html>
<head>
<script type="text/javascript">
<!--
function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}
var token = readCookie("token")
if(token == null)
	window.location = "https://www.google.com/accounts/AuthSubRequest?scope=http://www.google.com/m8/feeds/&secure=0&session=1&next="+encodeURIComponent(window.location)+"WishList.html&hd=default";
	//window.location = "https://www.google.com/accounts/AuthSubRequest?scope=http://www.google.com/m8/feeds/&secure=0&session=1&next="+encodeURIComponent(window.location)+"%2FWishList.html&hd=default";
else
	window.location=window.location+"WishList.html?token="+token;  //TODO should parse window.location and strip anything after last /
    //https://www.google.com/accounts/AuthSubRequest?scope=http://www.google.com/m8/feeds/&secure=0&session=1&next=http%3A%2F%2Fwishlist.shep.me%2FWishList.html&hd=default
    //alert(encodeURIComponent(window.location));
    
//-->
</script>
</head>
<body>

</body>
</html>
